﻿<UserControl x:Class="GBlason.Control.Aggregate.ShapeResourceEditor"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:Properties="clr-namespace:GBlason.Properties" xmlns:Tools="clr-namespace:GBlason.Common.Tools"
             mc:Ignorable="d" 
             d:DataContext="{Binding Source={x:Static Member=Tools:DesignTimeViewModel.ShapeViewModelDesignResource}}"
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="3"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <StackPanel Orientation="Vertical" Grid.Column="0" Grid.Row="0">
            <TextBlock Text="{x:Static Properties:Resources.ShapeResourcePathLabel}"/>
            <TextBox AcceptsReturn="True" TextWrapping="Wrap" TextAlignment="Left"
                     Text="{Binding Path=Geometry, Mode=TwoWay}"/>
        </StackPanel>

        <StackPanel Orientation="Vertical" Grid.Column="1" Grid.Row="0">
            <TextBlock Text="{x:Static Properties:Resources.ShapePreview}"/>
            <!--<TextBox AcceptsReturn="True" TextWrapping="Wrap" TextAlignment="Left"
                     Text="Properties HERE"/>-->
            <Viewbox HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="1" DockPanel.Dock="Left"
                      SnapsToDevicePixels="False">
                <Path Data="{Binding Path=Geometry}" Stroke="Black" StrokeThickness="3" Fill="{StaticResource ResourceKey=CustomMiniShapeGlossyBrush}">
                </Path>
            </Viewbox>
        </StackPanel>

        <WrapPanel Orientation="Vertical" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="2">

        </WrapPanel>
    </Grid>
</UserControl>
